
from pydantic import BaseModel


class license(BaseModel):
    LegalPerson_ID:int
    LegalPeson_Name:str
    LegalPeson_Code:str
    LegalPeson_Representative:str
    Auth_serial_number:str
    IsQualified:int
    Authed_StartDate:str
    Authed_EndDate:str
    Authed_Online_Number:int
    user_db_constr:str
    Auth_devname:str
    License_Remarks:str

#存库
class save_lib(BaseModel):
    add: list = [{"legalperson_name":"str","legalperson_code":'str',"legalperson_representative":'str',"auth_serial_number":'str',
                  "authed_stardate":'2021-03-19',"authed_enddate":"str=2021-03-19","user_db_constr":'str',"authed_online_number":'int',
                  "isqualified":'int',"license_remarks":'str',"auth_devname":'str'}]
    delete: list=["一维列表，分别存入需要删除的机构代码"]
    modify:list=[{"LegalPeson_Name":"strsaf","LegalPeson_Code":"12510000450fd9119K","LegalPeson_Representative":"str",
                  "Auth_serial_number":"str","IsQualified":"int",
                  "Authed_StartDate":"2021-03-19","Authed_EndDate":"2021-03-19","Authed_Online_Number":"int","User_DB_constr":"str","License_Remarks":"str"},
                 ]
